import java.util.Scanner;

public class 课堂 {
    public static boolean isLeapYear(int year) {
        if ((year % 4 == 0 && (year & 100) != 0) || year % 400 == 0) {
            return true;
        }else {
            return false;
        }
    }
    public static void main2(String[] args) {//不能在main中定义方法
        //方法

        Scanner in = new Scanner(System.in);
        int year = in.nextInt();
        boolean a = isLeapYear(year);
        System.out.println(a);
    }
    public static void main1(String[] args) {
     //输入
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的名字：");
        String name = scanner.next();//读到空格就停止
        //String name = scanner.nextLine();//读一整行
        System.out.println("名字：" + name);
    }
}
